package name.huzhenbo.java.patterns.state;

class ClosedDoor implements DoorState {
    public void open(DoorManager doorManager) {
        doorManager.executeOpen();
        doorManager.setOpened();
    }

    public void close(DoorManager doorManager) {
        doorManager.executeAlarm();
    }
}
